import Http from './http'

export const getData = () => {
  return Http.get('v1/capintro').then(response => {
    return Promise.resolve(response.data)
  })
}

export const getDetails = (id) => {
  return Http.get('v1/capintro' + '/' + id).then(response => {
    return Promise.resolve(response.data)
  })
}

export const getMembers = (id) => {
  return Http.get('v1/capintro/member' + '/' + id).then(response => {
    return Promise.resolve(response.data)
  })
}

export const getItems = (id) => {
  return Http.get('v1/capintro/item' + '/' + id).then(response => {
    return Promise.resolve(response.data)
  })
}
